﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Import Namespace="MindMelder.Web.Controllers" %>
<asp:Content ID="indexContent" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
	
	<script type="text/javascript" language="javascript">
		$().ready(function() {
			openid.init('openid_identifier');
			$("#openid_identifier").focus();
		});
	</script>
	<h1>Login with OpenID</h1>
	<hr />
	<p>To register or login enter your <a href="http://openid.net/what/">OpenID</a></p>
	<p class="error"><%= ViewData["Message"] %></p>
	<form action="Authenticate?ReturnUrl=<%= string.IsNullOrEmpty(Request.QueryString["ReturnUrl"]) ? "/" : HttpUtility.UrlEncode(Request.QueryString["ReturnUrl"]) %>" id="openid_form" method="post">
		<input type="hidden" name="action" value="verify" />
		
		<fieldset>
    		<legend>Sign-in or Create New Account</legend>
    		
    		<div id="openid_choice">
	    		<p>Please click your account provider:</p>
	    		<div id="openid_btns"></div>
			</div>
			
			<div id="openid_input_area">
				<input id="openid_identifier" name="openid_identifier" type="text" value="http://" />
				<input id="openid_submit" type="submit" value="Login"/>
			</div>
			<noscript>
			<p>OpenID is service that allows you to log-on to many different websites using a single indentity.
			Find out <a href="http://openid.net/what/">more about OpenID</a> and <a href="http://openid.net/get/">how to get an OpenID enabled account</a>.</p>
			</noscript>
		</fieldset>
	</form>
</asp:Content>
